/*var n = 2;
switch (n)
{
case 1:
	console.log("wakanda");
	break;
case 2:
	console.log("yindu");
	break;
case 3:
	console.log("riben");
	break;
default:
	console.log("babaoshan")
};
var crty = "zhengzhou";
switch(crty)
{
	case "zhengzhou":
	console.log("hulatang");
	break;
	case "beijing":
	console.log("kaoya");
	break;
	case "nanyang":
	console.log("huimian");
	default:
	console.log("meiyoupipei")
}
var c =90,a;
a=parseInt(c/10);
switch (a)
{
case 9:
console.log("you");
break;
case 8:
	console.log("liang");
	break;
case 7:
	console.log("zhong");
break;
case 6:
	console.log("jige");
	break;
    case 5:
	case 4:
	case 3:
	case 2:
	case 1:
	case 0:
	console.log("bujige")
	break;
	default:
	console.log("shurufeifa")
}*/

var pic = prompt("请输入单价");
var psc = prompt("请输入数量")
var z = 1200,p；
p = Number(pic*psc);
if (p >= 1000)
{
	p *=0.9
	z = Number(z - p)
	console.log(z)
}else if(z >= 0){
	console.log("支付成功")
}else{
	console.log("支付失败")
}


